home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 4 / ETO Development Tools 4.iso / Tools - Objects / MacApp / MacApp 3.0a2 / Libraries / Dialog.r < prev    next >
Encoding:
Text File  |  1991-05-01  |  1.9 KB  |  107 lines  |  [TEXT/MPS ]

  1. /*
  2.     Dialog.r
  3.     MacApp® Resources for UDialog
  4.     Copyright © 1985 - 1990 Apple Computer, Inc.  All rights reserved.
  5. */
  6.  
  7. /* • Auto-Include the requirements for this source */
  8. #ifndef __TYPES.R__
  9. #include "Types.r"
  10. #endif
  11.  
  12. #ifndef __MacAppTypes__
  13. #include "MacAppTypes.r"
  14. #endif
  15.  
  16. #ifndef __ViewTypes__
  17. #include "ViewTypes.r"
  18. #endif
  19.  
  20.  
  21. #define        phInvalidValue            300
  22. #define        kInvalidValueReasons    300
  23. #define        kDialogTEViewID            300
  24.  
  25. #if !SystemSevenOrLater
  26. include "Popup.rsrc" 'CDEF' (128);                    // suck in the Popup CDEF for System 6 compatibility
  27. #endif
  28.  
  29. #if qTemplateViews
  30. resource 'view' (kDialogTEViewID,
  31. #if qNames
  32.     "kDialogTEViewID",
  33. #endif
  34.     purgeable)  { {
  35.     root, noID, { 0, 0 }, { 0, 0 }, sizeRelSuperView, sizeVariable, shown, enabled,
  36.     TEView {
  37.         "TDialogTEView",
  38.             withoutStyle, crOnly, acceptChanges, freeText, cTyping, unlimited,
  39.             noInset, justSystem, systemFont };
  40. } };
  41. #endif
  42.  
  43.  
  44. resource 'STR#' (kInvalidValueReasons,
  45. #if qNames
  46.     "kInvalidValueReasons",
  47. #endif
  48.     purgeable) {
  49.     {    /* [1] */    "Invalid value";
  50.         /* [2] */    "The value is less than the allowed minimum";
  51.         /* [3] */    "The value is greater than the allowed maximum";
  52.         /* [4] */    "The value contains non-numeric characters";
  53.         /* [5] */    "The value contains too many characters";
  54.     }
  55. };
  56.  
  57. resource 'DITL' (phInvalidValue,
  58. #if qNames
  59.     "phInvalidValue",
  60. #endif
  61.     purgeable) {
  62.     {    /* array DITLarray: 3 elements */
  63.         /* [1] */
  64.         {90, 182, 110, 262},
  65.         Button {
  66.             enabled,
  67.             "OK"
  68.         };
  69.         /* [2] */
  70.         {10, 80, 80, 270},
  71.         StaticText {
  72.             disabled,
  73.             "^0; previous value substituted."
  74.         };
  75.         /* [3] */
  76.         {10, 20, 42, 52},
  77.         Icon {
  78.             disabled,
  79.             1
  80.         }
  81.     }
  82. };
  83.  
  84. resource 'ALRT' (phInvalidValue,
  85. #if qNames
  86.     "phInvalidValue",
  87. #endif
  88.     purgeable) {
  89.     {90, 100, 210, 412},
  90.     phInvalidValue,
  91.     {    /* array: 4 elements */
  92.         /* [1] */
  93.         OK, visible, silent;
  94.         /* [2] */
  95.         OK, visible, silent;
  96.         /* [3] */
  97.         OK, visible, silent;
  98.         /* [4] */
  99.         OK, visible, silent
  100.     }
  101. #if SystemSevenOrLater
  102.     ,
  103.     alertPositionMainScreen
  104. #endif
  105. };
  106.  
  107.